package tiruvury.InterviewPrep.GenericAlgosTests;

import tiruvury.InterviewPrep.Generic.BitManipulation;

public class BitManipulationTests
{

	/**
	 * @param args
	 */
	public static void main(String[] args)
	{
		// Compute the power given a and b
		int base = -4;
		int pow = 3;
		double result = BitManipulation.computePower(base, pow);
		System.out.println("The result of " + base + " power " + pow + " is: " + result);

		// Insert M into N given i and j positions
		String M = new String("1010");
		String N = new String("10110101");
		System.out.println("The result string is: " + BitManipulation.GetModifiedBinaryInput(M, N, 0, 3));

	}
}